home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global scrolltop
- set w to the width of sprite the clickOn
- set p to the mouseH - the left of sprite the clickOn
- set l to the clickOn - 20
- set n to ((scrolltop + l) * 5) + (p * 5 / w) + 1
- set drv to char 1 of the pathName & ":\"
- set the locH of sprite 19 to the left of sprite the clickOn + (p * 5 / w * 108) + 2
- set the locV of sprite 19 to the locV of sprite the clickOn - 2
- updateStage()
- if not (the shiftDown) then
- set ppath to item 1 of line 1 of the text of cast "Folders"
- set pext to item 2 of line 1 of the text of cast "Folders"
- else
- set ppath to item 1 of line 2 of the text of cast "Folders"
- set pext to item 2 of line 2 of the text of cast "Folders"
- end if
- set pname to line n of the text of cast "FilesList"
- if the number of items in pname = 2 then
- set apathname to item 1 of pname && "-" && item 2 of pname & pext
- else
- set apathname to drv & ppath & pname & pext
- end if
- set the text of cast "FilePath" to apathname & " "
- set the selStart to 0
- set the selEnd to length(apathname)
- if the controlDown and (the number of items in pname = 1) then
- if not (the shiftDown) and not (the optionDown) then
- open(apathname, "pbrush")
- else
- open(apathname, "photoshp")
- end if
- end if
- end
-